package com.itheima.user.service.impl;

import com.itheima.pojo.User;
import com.itheima.user.mapper.UserMapper;
import com.itheima.user.service.UserService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUser(Long id) {
        User user = userMapper.getUser(id);
        return user;
    }
}
